﻿using System;

namespace CsharpTrainer.NHibernate3.Entities
{
    public class Employees
    {
        public virtual int EmployeeID { get; set; }
        public virtual string LastName { get; set; }
        public virtual string FirstName { get; set; }
        public virtual string Title { get; set; }
        public virtual DateTime BirthDate { get; set; }
        public virtual string Address { get; set; }
        public virtual string City { get; set; }
        public virtual string Region { get; set; }
        public virtual string Country { get; set; }
        public virtual string Notes { get; set; }

        public override string ToString()
        {
            string format = "Employee ID: {0}\nLast Name: {1}\n"
                          + "First Name: {2}\nTitle: {3}\nBirth Date: {4}\n"
                          + "Address: {5}\nCity: {6}\nRegion: {7}\nCountry: {8}\n"
                          + "Notes: {9}\n";

            return string.Format(format, EmployeeID, LastName, FirstName,
                                    Title, BirthDate, Address, City, Region, Country, Notes);
        }
    }
}
